@import "../cfg.less";

.root {
  height: 100%;
  box-sizing: border-box;
  font-family: @font-editor;

  // CodeMirror

  &.readonly {
    :global {
      .CodeMirror {
        .CodeMirror-linenumber {
          cursor: default;
        }
        .CodeMirror-cursors {
          display: none;
        }
      }
    }
  }

  &.show_search {
    padding-bottom: 40px;
  }
}

:global {
  .CodeMirror {
    font-family: @font-editor;
  }

  .cm-s-default .cm-comment {
    color: #090;
  }
  .cm-s-default .cm-ip {
    color: #00a;
    font-weight: bold;
  }
  .cm-s-default .cm-hl {
    background: #ff0;
  }
  .CodeMirror-gutters {
    border-right: none;
    padding-right: 6px;
  }

  .CodeMirror-linenumber {
    cursor: pointer;
  }

}
